scrolledwindow: Resolve whether we use overlay scrollbars early.
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Tue, 7 Jun 2016 05:09:28 +0000 (14:09 +0900)
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Thu, 9 Jun 2016 05:57:10 +0000 (14:57 +0900)
commit34feba1e7c5c86164592588bde479c97a5b96160
treefe287f33c41c83361a47efbe82cdc0128ea81af8
parentd7e242eec03a1056cdc0808aef6bcf1002b4df8b
scrolledwindow: Resolve whether we use overlay scrollbars early.

Widgets should support size requests before being realized in general,
otherwise this can cause flicker/resize at initial display time as
the toplevel window can make a request before realize/allocate.

This also makes the added testsuite/gtk/scrolledwindow.c test work again,
this was broken because we only ever calculate whether we are going
to use overlay scrollbars once the scrolled window is realized (and
the test case does not realize any window).
gtk/gtkscrolledwindow.c